package cn.liontalk.AbstractFactory;

public class AbstractFactoryTest {

    public static void main(String[] args) {
        AbstractCarFactory bmwCarFactory = new BMWCarFactory();
        bmwCarFactory.installWheel();
        bmwCarFactory.installSteeringWheel();
        bmwCarFactory.installEngine();
        // 奔驰员工安装轮胎和方向盘
        AbstractCarFactory mercedesCarFactory = new MercedesCarFactory();
        mercedesCarFactory.installWheel();
        mercedesCarFactory.installSteeringWheel();
        mercedesCarFactory.installEngine();
    }
}
